package com.ruicar.afs.cloud.channel.common.mq.sender.impl;

import com.ruicar.afs.cloud.channel.filetemp.entity.ComAttachementFileTemp;
import com.ruicar.afs.cloud.channel.witness.entity.ChannelWitnessInfoTemp;
import com.ruicar.afs.cloud.common.mq.rabbit.message.AfsTransEntity;
import com.ruicar.afs.cloud.common.mq.rabbit.message.MqTransCode;
import com.ruicar.afs.cloud.parameter.commom.entity.VeBrand;
import com.ruicar.afs.cloud.parameter.commom.entity.VeMain;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Ice
 * @date 2020/8/26 21:43
 */
@Service
@AllArgsConstructor
public class SenderChannelToApplyImpl {
    public AfsTransEntity<List<VeBrand>> sendVeBrand(List<VeBrand> temp) {
        AfsTransEntity<List<VeBrand>> transEntity = new AfsTransEntity<>();
        transEntity.setTransCode(MqTransCode.CHANNEL_CHANNEL_APPLY_POS_SEND_VEHICLE_BRAND_APPLY);
        transEntity.setData(temp);
        return transEntity;
    }

    public AfsTransEntity<List<VeMain>> sendVeMain(List<VeMain> temp) {
        AfsTransEntity<List<VeMain>> transEntity = new AfsTransEntity<>();
        transEntity.setTransCode(MqTransCode.CHANNEL_CHANNEL_APPLY_POS_SEND_VEHICLE_MAIN_APPLY);
        transEntity.setData(temp);
        return transEntity;
    }

    public AfsTransEntity<List<ComAttachementFileTemp>> sendComAttachementFile(List<ComAttachementFileTemp> temp){
        AfsTransEntity<List<ComAttachementFileTemp>> transEntity = new AfsTransEntity<>();
        transEntity.setTransCode(MqTransCode.CHANNEL_CHANNEL_APPLY_POS_SEND_CHANNEL_FILE_APPLY);
        transEntity.setData(temp);
        return transEntity;
    }


}
